/**
 * <p>Title: Cell Class</p>
 * <p>Description: CS 343 Project</p>
 * @author Quintin Stolpe
 * @email quintin.stolpe@my.uwrf.edu
 * @date Dec 3 2012
*/

package maze;

public class Cell {
	public boolean visited = false;
	public boolean walls[] = new boolean[4];
	public int x;
	public int y;

	//Cell constructor
public Cell(int anX, int aY) {
	super();
	x = anX;
	y= aY;
	
	for (int i = 0; i < walls.length;i++)
	{
		walls[i] = true;
	}
	
}
public int wallCount()
{
	int numWalls = 0;
	for (int i = 0; i < walls.length; i++)
	{
		if (walls[i])
		{
			numWalls++;
		}
	}
	return numWalls;
}
public boolean equals(Object o)
{
	Cell otherCell = (Cell)o;
	return ( x == otherCell.x && y==otherCell.y);
}
}
